<template>
  <img
    :src="
      getSrc({
        isAutoImg,
        src,
      })
    "
    alt="src"
    loading="lazy"
  />
</template>

<script lang="ts" setup>
const { isAutoImg = false, src = "" } = defineProps<{
  /**
   * 是否为动态路径图片
   * @default false
   */
  isAutoImg?: boolean;
  /** 图片路径 */
  src?: string;
}>();
</script>

<style scoped></style>
